#!/usr/bin/env python
# encoding: utf-8
"""
@Author: Beam
@Mail:506556658@qq.com
@file: jsonp.py
@time: 2017/11/10 11:24
"""
import requests #pip install requests

from django.shortcuts import render,HttpResponse,redirect

def jsonp(request):
	response = requests.get('http://weatherapi.market.xiaomi.com/wtr-v2/weather?cityId=101121301')
	response.encoding = 'utf-8'
	return render(request,'jsonp.html',{'result':response.text})